Xbasic
RTFMEMO.SELECT Function
Syntax
.SELECT( Start_Position as N, Length as N )
Arguments
- Start_Position
The beginning position of the selection. Position 1 is before the first character in the control. Position 0 selects all text in the control.
- Length
The number of characters to select.
Description
The .SELECT() method selects text in an RTF field.
Example
The following example selects 5 characters beginning at position 4 in an RTF field in an open form.
dim obj as P obj = :Customer_Information:rtfmemofield.this obj.rtf.set_cursor(1) obj.rtf.insert_text("This is RTF text") obj.rtf.select(4,5)
Limitations
Desktop applications only.
See Also